package edu.unu.iist.ts2es.util;

import java.util.HashSet;
import java.util.Set;

public class Event /*implements Cloneable*/{
	
	private String name;
	private String transition;
	private Set<Event> set;
	
	public Event(String name, String transition){
		this.name = name;
		this.transition = transition;
	}
	
	public Event(Set<Event> set) {
		this.name = set.toString();
		this.transition = null;
		this.set = new HashSet<Event>();
		this.set.addAll(set);
	}

	public String toString(){
		if(transition!=null){
			return this.name+"("+this.transition+")";
		}else{
			return this.set.toString();
		}
	}
	
	public String getTransition(){
		return this.transition;
	}
	
	public Set<Event> getEventSet(){
		return set;
	}
/*	
	public Object clone(){
		return new Event(this.name,this.transiton);
		
	}*/
	
	 
}
